package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 参合农民档案管理对象 farmer
 * 
 * @author moweiyu
 * @date 2021-06-09
 */
public class Farmer extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**  */
    private Long id;

    /** 家庭编号 */
    @Excel(name = "家庭编号")
    private Long familyId;

    /** 农合证号 */
    @Excel(name = "农合证号")
    private Long ruralCardId;

    /** 医疗证号 */
    @Excel(name = "医疗证号")
    private Long medicalCardId;

    /** 户内编号 */
    @Excel(name = "户内编号")
    private Long indoorId;

    /** 姓名 */
    @Excel(name = "姓名")
    private String name;

    /** 与户主关系 */
    @Excel(name = "与户主关系")
    private String relation;

    /** 身份证号 */
    @Excel(name = "身份证号")
    private String idCard;

    /** 性别 */
    @Excel(name = "性别")
    private String sex;

    /** 健康状况 */
    @Excel(name = "健康状况")
    private String health;

    /** 民族 */
    @Excel(name = "民族")
    private String nation;

    /** 文化程度 */
    @Excel(name = "文化程度")
    private String culture;

    /** 年龄 */
    @Excel(name = "年龄")
    private Long age;

    /** 出生日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "出生日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date birthday;

    /** 人员属性 */
    @Excel(name = "人员属性")
    private String proprety;

    /** 是否农村户口 */
    @Excel(name = "是否农村户口")
    private String ruralHousehold;

    /** 职业 */
    @Excel(name = "职业")
    private String job;

    /** 工作单位 */
    @Excel(name = "工作单位")
    private String workPlace;

    /** 联系电话 */
    @Excel(name = "联系电话")
    private String phone;

    /** 常住地址 */
    @Excel(name = "常住地址")
    private String address;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setFamilyId(Long familyId) 
    {
        this.familyId = familyId;
    }

    public Long getFamilyId() 
    {
        return familyId;
    }
    public void setRuralCardId(Long ruralCardId) 
    {
        this.ruralCardId = ruralCardId;
    }

    public Long getRuralCardId() 
    {
        return ruralCardId;
    }
    public void setMedicalCardId(Long medicalCardId) 
    {
        this.medicalCardId = medicalCardId;
    }

    public Long getMedicalCardId() 
    {
        return medicalCardId;
    }
    public void setIndoorId(Long indoorId) 
    {
        this.indoorId = indoorId;
    }

    public Long getIndoorId() 
    {
        return indoorId;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setRelation(String relation) 
    {
        this.relation = relation;
    }

    public String getRelation() 
    {
        return relation;
    }
    public void setIdCard(String idCard) 
    {
        this.idCard = idCard;
    }

    public String getIdCard() 
    {
        return idCard;
    }
    public void setSex(String sex) 
    {
        this.sex = sex;
    }

    public String getSex() 
    {
        return sex;
    }
    public void setHealth(String health) 
    {
        this.health = health;
    }

    public String getHealth() 
    {
        return health;
    }
    public void setNation(String nation) 
    {
        this.nation = nation;
    }

    public String getNation() 
    {
        return nation;
    }
    public void setCulture(String culture) 
    {
        this.culture = culture;
    }

    public String getCulture() 
    {
        return culture;
    }
    public void setAge(Long age) 
    {
        this.age = age;
    }

    public Long getAge() 
    {
        return age;
    }
    public void setBirthday(Date birthday) 
    {
        this.birthday = birthday;
    }

    public Date getBirthday() 
    {
        return birthday;
    }
    public void setProprety(String proprety) 
    {
        this.proprety = proprety;
    }

    public String getProprety() 
    {
        return proprety;
    }
    public void setRuralHousehold(String ruralHousehold) 
    {
        this.ruralHousehold = ruralHousehold;
    }

    public String getRuralHousehold() 
    {
        return ruralHousehold;
    }
    public void setJob(String job) 
    {
        this.job = job;
    }

    public String getJob() 
    {
        return job;
    }
    public void setWorkPlace(String workPlace) 
    {
        this.workPlace = workPlace;
    }

    public String getWorkPlace() 
    {
        return workPlace;
    }
    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }
    public void setAddress(String address) 
    {
        this.address = address;
    }

    public String getAddress() 
    {
        return address;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("familyId", getFamilyId())
            .append("ruralCardId", getRuralCardId())
            .append("medicalCardId", getMedicalCardId())
            .append("indoorId", getIndoorId())
            .append("name", getName())
            .append("relation", getRelation())
            .append("idCard", getIdCard())
            .append("sex", getSex())
            .append("health", getHealth())
            .append("nation", getNation())
            .append("culture", getCulture())
            .append("age", getAge())
            .append("birthday", getBirthday())
            .append("proprety", getProprety())
            .append("ruralHousehold", getRuralHousehold())
            .append("job", getJob())
            .append("workPlace", getWorkPlace())
            .append("phone", getPhone())
            .append("address", getAddress())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
